<?php
//
//require_once 'common/conn.php';
//require_once 'common/function.php';
//
//require_once 'db/account.db.php';
//
//
//$dbc = new DBC();
//
//$accountDb = new AccountDb($dbc);
//
//$accountId = "gm1";
//
//$accountPass = "931009hqq";
//
//$data = $accountDb->getAccount($accountId, $accountPass);
//
////var_dump($data);
//
//echo json_encode($data);
//error_reporting(0);
header("Content-type: text/html; charset=utf-8");
session_start();

//require_once 'common/config.php';
//require_once 'common/conn.php';
//require_once 'common/function.php';

//require_once 'db/account.db.php';
//require_once 'db/special.db.php';
//require_once 'db/itemType.db.php';
//require_once 'db/accountMoney.db.php';
//require_once 'db/friend.db.php';
//require_once 'db/character.db.php';
//require_once 'common/common.php';
//require_once 'db/point.db.php';

//$payDB = "payment_db";
//$dbc = new DBC($payDB);
//$balance = 0; //积分余额
//$paymentDB = new pointDB($dbc);
//$item = '';
//$user_payment_data = $paymentDB->GetPointCount($_SESSION['AccUnique'],$_SESSION['AccountID']);
//if(isArrayNotEmpty($user_payment_data))
//{
//    $balance = $user_payment_data[0]['all_point'];
//}
//$user_payment_data = $paymentDB->PointBuyItem($_SESSION['AccUnique'],$_SESSION['AccountID'],1000,'269459421',1,1,$item);
//$user_payment_data = $paymentDB->AddPoint($_SESSION['AccUnique'],$_SESSION['AccountID'],10000,1);
//$user_payment_data = $paymentDB->getAlreadyBuyCount($_SESSION['AccUnique'],'269459422');
//$user_payment_data = $paymentDB->StoreSendPoint($_SESSION['AccUnique'],$_SESSION['AccountID'],101,2);
//$user_payment_data = $paymentDB->qiandao($_SESSION['AccUnique'],$_SESSION['AccountID']);

//var_dump($user_payment_data);


$serverName = "47.99.219.8,7758"; //serverName\instanceName, portNumber (default is 1433)
$connectionInfo = array( "Database"=>"TAccount", "UID"=>"GloryC_sql2017_srv", "PWD"=>"GLgame_2017!#$%2008");
$conn = sqlsrv_connect( $serverName, $connectionInfo);

if( $conn ) {
     echo "Connection established.<br />";
}else{
     echo "Connection could not be established.<br />";
     die( print_r( sqlsrv_errors(), true));
}
?>